<div class='c-box-headline c-box c-box-gallery c-box-right c-box-gallery-images'>

		<?PHP
		$items=0;
	
		foreach(array_reverse($community->galleries) as $x)
		{

			if($items<7){
                if($items==0)
                {
				?>

					<li class="first_image">
							
									<img src="a/show-resized.php?file=<?PHP echo $x['image'];?>&x=300&y=205" alt="<?PHP  echo $x['title'];?>">
							
					
				<a href='gallery/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="">	<span class="title"><?PHP  echo $x['title'];?></span></a>
						<br/><span class="secondary"><?PHP  echo $x['secondary'];?></span>

					



					</li>
				<?PHP
			}
			else 
				{
				?>
				 <li>
							
								    <a href='gallery/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="">
								
									
									<img src="a/show-resized.php?file=<?PHP echo $x['image'];?>&x=76&y=60" width="76" height="60" alt="<?PHP  echo $x['title'];?>">
							
<span class="title"><?PHP  echo $x['title'];?></span></a>
					



				</li>
				<?PHP	
				}
				$items++;
			
             }

		}
	
		?>

		<a href="gallery_view/<?php echo $conf->qm['1']?>" class="mgalleries mgblack"><span style="padding-top:15px;" class="more-galleries">MORE GALLERIES</span></a>
</div>
